import axios from "axios";

const axiosInstance = axios.create({
    baseURL: "http://localhost:9095",
    headers: {
        "Content-Type": "application/json",
    },
    timeout: 5000,
});
// 不修改响应对象，直接返回完整的 response
axiosInstance.interceptors.response.use(
    (response) => response, // 返回完整响应对象
    (error) => Promise.reject(error)
);

export default axiosInstance;
